Piwik\Plugins\Goals\API C

Total Complexity 105
Dependencies 31
Dependents 1
Total lines 773
Lines of code 438
Logical lines of code 258
Comment lines 178
Methods 34
Properties 0

Methods 34

Method Rating Maintainability Complexity Lines of code
getMetrics()
C
34 26 85
enrichItemsTableWithViewMetrics()
A
46 10 37
getItems()
A
47 7 35
enrichItemsDataTableWithItemsViewMetrics()
S
54 7 19
checkPatternIsValid()
S
59 6 13
get()
S
46 4 39
getGoals()
S
56 4 18
renameNotDefinedRow()
S
61 4 12
checkPatternType()
S
60 3 14
checkEventValueAsRevenue()
S
72 3 5
checkPattern()
S
66 3 8
convertSpecialGoalIds()
S
66 3 9
addGoal()
S
52 1 26
updateGoal()
S
52 1 25
getGoal()
S
68 2 7
formatGoal()
S
67 2 8
getGoalSpecificDataTable()
S
65 2 8
getModel()
S
81 1 3
checkName()
S
80 1 3
checkDescription()
S
80 1 3
deleteGoal()
S
69 1 7
getItemsSku()
S
77 1 3
getItemsName()
S
77 1 3
getItemsCategory()
S
77 1 3
appendSegment()
S
79 1 3
getNumeric()
S
70 1 6
getConversions()
S
77 1 3
getNbVisitsConverted()
S
77 1 3
getConversionRate()
S
71 1 5
getRevenue()
S
77 1 3
getDaysToConversion()
S
65 1 8
getVisitsUntilConversion()
S
65 1 8
getCacheId()
S
79 1 3
getGoalsInfoStaticCache()
S
81 1 3